package com.qiujie.controller;

import com.qiujie.dto.ResponseDTO;
import com.qiujie.entity.Config;
import com.qiujie.entity.Dept;
import com.qiujie.entity.Examine;
import com.qiujie.service.ConfigService;
import com.qiujie.service.ExamineService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/examine")
public class ExamineController {

    @Resource
    private ExamineService examineService;

    @ApiOperation("保存绩效接口")
    @PostMapping("/saveExamine")
    public ResponseDTO saveExamine(@RequestBody Examine examine){
        return this.examineService.add(examine);
    }

    @ApiOperation("列表查询接口")
    @PostMapping("/getExamine")
    public ResponseDTO getExamine(@RequestBody Examine examine){
      return this.examineService.getExamine(examine);
    }

}
